package com.ayh.campusfun.common.core.oss;

import com.ayh.campusfun.common.OSSResult;
import org.springframework.util.MultiValueMap;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author ayh
 * @create 2021/4/2 0002 14:21
 * OSS服务层
 */

public interface OSSService {
    OSSResult uploadFile(MultipartFile file, String storagePath);
    OSSResult randomGrabberFFmpegVideoImage(String filePath) throws Exception;

    List<OSSResult> uploadFiles(MultiValueMap<String, MultipartFile> files, String img);
    Long getTime(MultipartFile file) throws Exception;
}
